package com.shse.sale.service;

import com.shse.sale.meta.Content;
import com.shse.sale.meta.User;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by shse on 3/19/2016.
 */
public interface ContentService {

    public void getContents(HttpServletRequest request, ModelMap map, User user);

    public void getUnBuyContents(HttpServletRequest request, ModelMap map, User user);

    public List<Content> getBuyedContents(User user);

    public Content getContentById(String id);

    public String addContent(Content content);

    public String updateContent(Content content);

    public void deleteContent(String id);
}
